package valueAndQuoteCross;

/**
 * @author shenmh
 * @create 2020-10-19 8:32
 * @description 值传递
 */
public class ValueCross {

    public static void main(String[] args) {
        int age = 10;
        int weight = 50;
        valueCross(age,weight);
        System.out.println("值传递方法执行后的age" + age);
        System.out.println("值传递方法执行后的weight" + weight);
    }

    public static void valueCross(int age,int weight){
        System.out.println("传入的age值："+age);
        System.out.println("传入的weight的值" + weight);
        age = 23;
        weight = 60;
        System.out.println("修改后的age值：" + age);
        System.out.println("修改后的weight值：" + weight);
    }
}
